ISlave.EoeSetSlaveEoeIp 方法
配置一個 EtherCAT 從站的 EoE (Ethernet over EtherCAT) 網路設定。欲獲得更多有關 EoE 的資訊,請見 EtherCAT 乙太網路。
命名空間:IntervalZero.KINGSTAR.Base.Class組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
語法
IKsCommand EoeSetSlaveEoeIp(
byte[] mac,
byte[] ip,
byte[] subnet,
byte[] gateway,
byte[] dns,
string dnsName
)
Function EoeSetSlaveEoeIp(
mac As Byte(),
ip As Byte(),
subnet As Byte(),
gateway As Byte(),
dns As Byte(),
dnsName As String
) As IKsCommand
參數
mac
型別:byte[]
從站的 MAC 位址。
ip
型別:byte[]
從站的 IP 位址。
subnet
型別:byte[]
從站的子網路。
gateway
型別:byte[]
從站的閘道。
dns
型別:byte[]
從站的 DNS。
dnsName
型別:string
從站的 DNS 名稱。
回傳值
型別:IKsCommand
回傳一個方法的狀態。
備註
- 若 EtherCAT 從站支援 EoE,且在 RTX64 控制台中,網路與介面 (Network and interfaces) 底下的 管理介面 (Manage interfaces) 中,裝置 (Device) 設定為 RTX64 虛擬網路介面 (Virtual Network Interface),在 Advanced NAL properties > TCP/IP Stack properties,Filter Name 設定為
KSeoe.rtdll
,則從站將在啟動時自動取得 IP 位址。 - IP、子網路、閘道及 DNS 通常以 "1.2.3.4" 表示,四個值的設定範圍皆介於 0–255 間,且可儲存於一個位元組中。
- 欲獲得更多有關 KINGSTAR EoE 配置的資訊,請見 EtherCAT 乙太網路。
可用的 EtherCAT 狀態
ecatPreOP, ecatSafeOP, ecatOP
參見